<template>
  <el-form label-width="80px" style="width: 500px">
    <el-form-item label="公司名称">
      <el-input disabled :value="info.name" />
    </el-form-item>
    <el-form-item label="公司地址">
      <el-input disabled :value="info.companyAddress" />
    </el-form-item>
    <el-form-item label="公司电话">
      <el-input disabled :value="info.companyPhone" />
    </el-form-item>
    <el-form-item label="公司邮箱">
      <el-input disabled :value="info.mailbox" />
    </el-form-item>
    <el-form-item label="公司备注">
      <el-input disabled :value="info.remarks" />
    </el-form-item>
  </el-form>
</template>

<script>
// 按需导入接口
import { getCompanyAPI } from '@/api/company.js'

export default {
  name: 'CompanyInfo',
  data() {
    return {
      // 企业信息
      info: {}
    }
  },
  created() {
    this.initCompanyInfo()
  },
  methods: {
    async initCompanyInfo() {
      const result = await getCompanyAPI()
      // console.log(result)
      this.info = result.data[0]
    }
  }
}
</script>

<style></style>
